- hosts: redis_cluster
  remote_user: root
  gather_facts: false
  roles: #执行roles下的yaml文件
#    - common
    - scp_compose
    - run_compose
#    - init_cluster
#- hosts: redis-cluster
#  remote_user: root
#  tasks:
#  - name: join rediscluster
#    shell: docker exec {{redis_name}} redis-cli --cluster create {{redis_cluster}} --cluster-replicas 1 -a {{redis_pass}} #让创建好的redis容器加入集群
